home *** CD-ROM | disk | FTP | other *** search
- README for Calendar v0.10
- =========================
-
- *** IMPORTANT CHANGE ***
-
- Since v0.02, the module was changed to use the Julian Day number for
- internal representation of dates instead of the Gregorian Day number.
-
- The names of the SWIs have changed also. The 'GDay' part now reads 'JDay'.
-
- Note that this makes v0.01 and v0.02 incompatible with v0.10. Software
- written for use with the earlier versions needs to be adapted to the new
- names.
-
- If your program has stored the Gregorian Day numbers somewhere, you will
- need to convert them to Julian Day numbers. The formula is:
-
- JDay = GDay + 1721425
-
- *** ***
-
- This version only supports Julian (1) and Gregorian (2) calendars.
- It only supports Calendar_JDayToDate and Calendar_DateToJDay.
-
- The package contains:
- !Contents - A file listing all the files in the package. Used by !Filer.
-
- !System - a directory structure containing the module, ready to be
- merged with your !System
-
- Calendar - another copy of the module
-
- README - this readme file
-
- CalLib - a library of C veneers for the SWIs
- CalLib.SetVars - Sets CalLib$Path so you can use
- #include "CalLib:calendar.h"
- CalLib.o.calendar - the library
- CalLib.h.calendar - a header file describing the routines
- CalLib.s.calendar - the assembler source used to make the routines,
- for your information
-
- Demo.!Datum - A little demo written in C, using the CalLib veneers,
- complete with sources.
-
- Demo.BASIC - a directory with some test and demo programs written
- in BASIC
- Demo.BASIC.Test1 - Convert to GDay and back. Show registers
- Demo.BASIC.Test2 - Compare between Gregorian and Julian calendar for a
- sequence of dates
- Demo.BASIC.Test3 - For a given date, calculate the date that is N days
- away
- Demo.BASIC.Test4 - Try to trigger an error
- Demo.BASIC.Test5 - Calculate the difference between two dates
-
- Docs - a directory with documentation, containing:
- Docs.History - a cumulative list of changes from version to version
- Docs.ManHTML - a HTML version of the manual
- Docs.ManText - a text version of the manual
-
- Note: the source file for the manual, which is written in EasyWriter, is no
- longer supplied. HTML and text version have been extracted from the source.
-
- To install, merge the !System directory in this package with your !System
- directory using the Sysmerge facility. (On recent versions of RISC OS:
- double-click !Boot, select System and follow the instructions.) You can then
- load the module with something like
-
- *RMEnsure Calendar 0 RMLoad System:Modules.Calendar
-
- Alternatimvely, you can put the module inside your own application's directory
- (!Myapp.Calendar or similar) and load it from there:
-
- *RMEnsure Calendar 0 RMLoad <MyApp$Dir>.Calendar
-
- To see direct results (e.g. for running the test programs) simply double-click
- the Calendar file.
-
-
- The SWIs are described in the manual. Note the limitations mentioned in this
- README.
-
- This package is FREEWARE. It may be copied freely, provided no part of it is
- changed and that it is not sold for profit.
-
- $Id: README 1.3 2003-09-23 04:03:31+01 erikgrnh Exp erikgrnh $
-